package com.design.chain;

/**
 * @author cxx
 * @create 2020-04-21 15:17
 **/
public class Main {


    /**
     * 责任链模式
     */
    public static void main(String[] args) {

        FirstInterceptor interceptor = new FirstInterceptor (
                new TwoInterceptor (new ThreeInterceptor (null))
        );
        interceptor.handle ("123");

    }



}
